package sg.edu.nus.comp.qa;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class QAMain {
	private static Log LOGGER = LogFactory.getLog(QAMain.class);

	public static void main(String[] args){
		if(args.length<1){
			LOGGER.error("Too Few Arguments!");
			return;
		}
		String dbPathFile = args[0];
		try {
			QAInitializer.SINGLETON.init(dbPathFile);
		} catch (Exception e) {
			LOGGER.error("Initialization Failure", e);
			System.exit(1);
		}
		QACommandLine command = new QACommandLine();
		command.command();
	}
}
